﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Activation;
using HydraShellServer.Implementations;

namespace HydraShellServer.Services
{
    [AspNetCompatibilityRequirementsAttribute(RequirementsMode=AspNetCompatibilityRequirementsMode.Allowed)]
    public class HydraSynchronizationService : IHydraSynchronizationService
    {
        public SynchronizationUpdate[] ProcessQuery(string element, string path)
        {
            return new SynchronizationUpdate[] 
            {
                new SynchronizationUpdate
                {
                    ID = "Hello",
                    Updates = new string[] { "0" }
                }
            };
        }

        public SynchronizationUpdate[] GetUpdates()
        {
            return new SynchronizationUpdate[0];
        }

        public string LoadService(Guid packageGuid, string type)
        {
            return "Success";
        }

        public string LoadPackage(Guid packageGuid, string type)
        {
            return "Success";
        }

        public string Ping()
        {
            return "Hello";
        }
    }
}
